package com.ruoyi.crop.service;

import com.ruoyi.crop.api.domain.Farmer;
import com.ruoyi.crop.api.domain.MaterialLot;
import com.ruoyi.crop.api.domain.Product;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 86178
* @description 针对表【src_product(产品表)】的数据库操作Service
* @createDate 2024-07-27 09:35:55
*/
public interface ProductService extends IService<Product> {

    List<Product> selectProductList(Product product);

    List<Product> selectDelFlagList(Product product);

    List<Farmer> selectFarmerList();
    List<MaterialLot> selectMaterialLotList();

    int saveAll(Product product);

    List<Integer> selectProductByGids(Integer productId);

    int updateProduct(Product product);


    int removeDelFlagIds(List<Integer> productIds);

    int delProductById(List<Integer> productIds);
}
